/**
 * 路由的配置数据
 * */
const getRoutes = resolve => [
  // 首页
  {
    name: "",
    path: '/',
    component: resolve('pages/index')
  },
  // 疾病科室
  {
    name: "department",
    path: "/department/:diseaseId.html",
    component: resolve('pages/department/department')
  },
  {
    name: "drugList",
    path: "/drugList/:diseaseId/:id.html",
    component: resolve('pages/drug/drugList')
  },
  // 远程问诊
  {
    name: "ycwz",
    path: "/ycwz.html",
    component: resolve('pages/ycwz')
  },
  // 全球找药
  {
    name: "finddrug",
    path: "/finddrug.html",
    component: resolve('pages/drug/finddrug')
  },
  // 疾病靶点
  {
    name: "distarget",
    path: "/distarget/:page.html",
    component: resolve('pages/drug/distarget')
  },
  {
    name: "distargetbyid",
    path: "/distarget/:id/:page.html",
    component: resolve('pages/drug/distarget')
  },
  // 药品新闻
  {
    name: "drugnews",
    path: "/drugnews/:id.html",
    component: resolve('pages/news/drugnews')
  },
  //药品详情页面
  {
    name: "drugDetail",
    path: '/drugDetail/:id.html',
    component: resolve('pages/drug/drugDetail')
  },
  // 药品二级页面
  //药品详情页面>>资讯
  {
    name: "information",
    path: '/information/:id/:page.html',
    component: resolve('pages/drug/drugother')
  },
  //药品详情页面>>适应症
  {
    name: "indications",
    path: '/indications/:id/:page.html',
    component: resolve('pages/drug/drugother')
  },
  //药品详情页面>>用法用量
  {
    name: "dosage",
    path: '/dosage/:id/:page.html',
    component: resolve('pages/drug/drugother')
  },

  //药品详情页面>>治疗效果
  {
    name: "therapeuticEffect",
    path: '/therapeuticEffect/:id/:page.html',
    component: resolve('pages/drug/drugother')
  },
  //药品详情页面>>注意事项
  {
    name: "precautions",
    path: '/precautions/:id/:page.html',
    component: resolve('pages/drug/drugother')
  },
  //药品详情页面>>副作用
  {
    name: "adverseReactions",
    path: '/adverseReactions/:id/:page.html',
    component: resolve('pages/drug/drugother')
  },
  //新闻列表
  {
    name: "newslist",
    path: '/newslist/:page.html',
    component: resolve('pages/news/newslist')
  },

  // 医生详情页
  {
    name: "doctorDetails",
    path: '/doctorDetails/:id.html',
    component: resolve('pages/doctor/doctorDetails')
  },
  // 医院详情页
  {
    name: "hospitalDetails",
    path: '/hospitalDetails/:id.html',
    component: resolve('pages/hospital/hospitalDetails')
  },
];
// 导出
export default getRoutes;